package com.zuoye2.domain;

public class Dog {
    //属性
    //毛的颜色
    private String color;
    //品种
    private String breed;

    //构造参数
    //无参
    public Dog(){}
    //有参
    public Dog(String color,String breed){
        this.color=color;
        this.breed=breed;
    }
    //set/get
    public String getColor() {
        return color;
    }
    public void setColor(String color) {
        this.color = color;
    }
    public String getBreed() {
        return breed;
    }
    public void setBreed(String breed) {
        this.breed = breed;
    }

    //方法
    public void eat(){
        System.out.println(color+"的"+breed+"正在啃骨头.....");
    }
    public void lookHome(){
        System.out.println(color+"的"+breed+"正在看家.....");
    }
}
